import request from '@/utils/request'

//查看操作日志 /admin/operation/list
export function getOperationList(params) {
  return request({
    url: '/admin/operation/list',
    method: 'get',
    params
  })
}

//删除日志 /admin/operation/delete
export function deleteOperationLog(logIdList) {
  return request({
    url: '/admin/operation/delete',
    method: 'delete',
    data:logIdList
  })
}

//查看异常日志 /admin/exception/list
export function getExceptionList(params) {
  return request({
    url: '/admin/exception/list',
    method: 'get',
    params
  })
}

//删除异常日志 /admin/exception/delete
export function deleteExceptionLog(logIdList) {
  return request({
    url: '/admin/exception/delete',
    method: 'delete',
    data:logIdList
  })
}

//查看访问日志 /admin/visit/list
export  function getVisitList(params) {
  return request({
    url: '/admin/visit/list',
    method: 'get',
    params
  })
}

//删除访问日志
export function deleteVisitLog(logIdList) {
  return request({
    url: '/admin/visit/delete',
    method: 'delete',
    data:logIdList
  })
}

//查看定时任务日志 /admin/taskLog/list
export function getTaskLogList(params) {
  return request({
    url: '/admin/taskLog/list',
    method: 'get',
    params
  })
}

//删除定时任务日志 /admin/taskLog/delete
export function deleteTaskLog(logIdList) {
  return request({
    url: '/admin/taskLog/delete',
    method: 'delete',
    data:logIdList
  })
}

//清空所有定时任务日志 /admin/taskLog/clear
export function clearTaskLog() {
  return request({
    url: '/admin/taskLog/clear',
    method: 'delete'
  })
}
